package org.net5ijy.commons.http.test;

import java.io.IOException;
import lombok.extern.slf4j.Slf4j;
import org.net5ijy.commons.http.HttpClientHttp;
import org.net5ijy.commons.http.response.HtmlResponseHolder;

/**
 * Baidu类
 *
 * @author xuguofeng
 * @date 2020/7/14 13:53
 */
@Slf4j
public class Baidu {

  public static void main(String[] args) throws IOException {

    HttpClientHttp clientHttp = new HttpClientHttp(
        "proxy.******.com",
        8080,
        "******",
        "******");

    HtmlResponseHolder response = clientHttp.html("http://www.baidu.com/", null, null);

    System.out.println(response.getContent());

    clientHttp.close();
  }
}
